<template>
  <div class="cardContainer">
    <!-- 卡片头部 -->
    <div class="cardHeader">
      <span class="card">我的卡片</span>
      <span class="add-line"><i class="ri-add-line"></i>管理卡片</span>
    </div>
    <!-- 卡片信息 -->
    <div class="contextContainer">
    <div class="cardContext">
      <div class="contextHeader">
        <span class="left"><i class="ri-book-line"></i>回答问题</span>
        <span class="right">更多问题<i class="ri-arrow-right-s-line"></i></span>
      </div>
      <div class="context">
        <div class="contextTitle">努力真的能得到回报吗?</div>
        <div class="contextButton">
          <div class="left"><span>1628</span>关注</div>
          <div class="right">
            <div class="ignore"><i class="ri-eye-off-line"></i>忽略</div>
            <div class="response"><i class="ri-quill-pen-fill"></i>回答</div>
          </div>
        </div>
      </div>
    </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Card",
};
</script>

<style lang='less' scoped>
// 卡片整体容器
.cardContainer {
  width: 340px;
  height: 200px;
  margin:20px 0 0 20px;
  // background: #4ec7ff;
  // 卡片头部
  .cardHeader {
    display: flex;
    justify-content: space-between;
    .card {
      font-weight: bold;
    }
    .add-line {
      vertical-align: middle;
      color: #287af1;
    }
  }
  // 卡片内容容器
  .contextContainer{
    width: 350px;
    height: 170px;
    // 卡片内容
  .cardContext{
    width: 350px;
    height: 32px;
    // background: #287af1;
    // 内容顶部
    .contextHeader{
      display: flex;
      justify-content: space-between;
      line-height: 32px;
      font-size: 14px;
      margin-top: 10px;
      .left{
        i{
          padding: 2px;
          margin-right: 2px;
          vertical-align: middle;
          background: #3aa9ff;
          border-radius: 3px;
          color: #fff;
        }
      }
      .right{
         color: #bbbbbb;
        .ri-arrow-right-s-line{
          padding: 4px;
          vertical-align: middle;
          color: #bbbbbb;
        }
      }
    }
    // 内容中心
    .context{
      width: 330px;
      height: 108px;
      border: 1px solid #ddd;
      border-radius: 10px;

      // background: red;
      // 内容标题
      .contextTitle{
        padding: 10px;
        width: 300px;
        height: 30px;
        // background: red;
        font-size: 18px;
        font-weight: bold;
        line-height: 30px;
      }
      // 内容底部
      .contextButton{
        padding-left: 20px;
        width: 300px;
        height: 50px;
        line-height: 50px;
        // background: green;
        display: flex;
        justify-content: space-between;
        .left{
          font-size: 14px;
          color: #afafaf;
        }
        .right{
          display: flex;
          margin-top: 10px;
          .ignore{
            width: 70px;
            border-radius: 10px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            margin-right:10px ;
            background: #f7f7f7;
            .ri-eye-off-line{
              padding-right: 4px;
            }
          }
          .response{
            width: 70px;
            border-radius: 10px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            // margin:10px ;
            background: #ebf3fe;
            color: #116cf3;
          }
        }
      }
    }

    

  }
  }
  
}
</style>
